package com.dy.design_pattern_study.command_pattern.dome3;

/**
 * @CreateBy zhangdingyi
 * @Date 2023-04-19
 * @Content 请求者，要求该命令执行这个请求
 */
public class Invoker {
    private Command command;

    //设置命令
    public void SetCommand(Command command) {
        this.command = command;
    }

    //通知执行命令
    public void executeCommand() {
        command.excuteCommand();
    }
}
